package com.hzcx.app.simplechat.ui.publicui.presenter;

import android.content.Context;

import com.hzcx.app.simplechat.api.BaseDialogObserver;
import com.hzcx.app.simplechat.base.BasePresenter;
import com.hzcx.app.simplechat.model.PublicModel;
import com.hzcx.app.simplechat.model.UserModel;
import com.hzcx.app.simplechat.ui.chat.event.ChatShareUserEvent;
import com.hzcx.app.simplechat.ui.publicui.bean.PayListBean;
import com.hzcx.app.simplechat.ui.publicui.bean.ShareInfoBean;
import com.hzcx.app.simplechat.ui.publicui.contract.PayListContract;
import com.hzcx.app.simplechat.ui.publicui.contract.ShareContract;
import com.hzcx.app.simplechat.ui.user.bean.UserInfoBean;

import java.util.List;

public class PayListPresenter extends BasePresenter<PayListContract.View> implements PayListContract.Presenter {

    /**
     * 获取支付列表
     *
     * @param context
     */
    @Override
    public void getPayList(Context context) {
        PublicModel.getPayList(context, new BaseDialogObserver<List<PayListBean>>(context) {
            @Override
            protected void onSuccess(List<PayListBean> data) {
                if(mView!=null) {
                    mView.payListResult(data);
                }
            }
        });
    }
}
